/**
 * 
 */
package comparators;

import java.util.Comparator;

import entities.Appointment;


/**
 * @author Veit
 *
 */
public class AppointmentComparatorBegin implements Comparator {

    @Override
    public int compare(Object o1, Object o2) {
        Appointment a1 = (Appointment) o1;
        Appointment a2 = (Appointment) o2;
        return a1.getBegin().compareTo(a2.getBegin());
    }

/**
 * @param args
 */


}
